package com.aphrodite.ui.widgets.barcode;

/**
 * Code 128 barcode accumulator
 * 
 * @author kentelt
 * 
 */
final class C128Accumulator {
	private int value;

	C128Accumulator(int startingValue) {
		this.value = startingValue;
	}

	void add(int value) {
		this.value += value;
	}

	int getValue() {
		return value;
	}

	void increment() {
		value += 1;
	}
}
